<template>
  <div class="delMain">
    <div class="delMain-top">
      {{name}}
    </div>
    <div class="delMain-bottom">
      <div @click="canleClick">
        否
      </div>
      <div @click="okClick">
        是
      </div>
    </div>
  </div>
</template>
<script>
import { mapActions } from "vuex";
export default {
  props: ["name"],
  data() {
    return {};
  },
  created: function() {},
  mounted: function() {},
  watch: {},
  methods: {
    // 确认
    okClick() {
      this.$emit("ok", "1");
    },
    // 取消
    canleClick() {
      this.$emit("canle", "2");
    },
    ...mapActions([""])
  }
};
</script>
<style scoped>
.delMain-top {
  height: 125px;
  line-height: 125px;
  font-size: 15px;
  color: #585858;
  text-align: center;
  width: 100%;
  border-bottom: 2px solid #d3d3d3;
}

.delMain-bottom div:nth-child(1) {
  border-right: 1px solid #d3d3d3;
}

.delMain-bottom div {
  width: 50%;
  text-align: center;
  color: #545454;
  line-height: 65px;
  height: 65px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

.delMain-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.delMain {
  width: 380px;
  height: 190px;
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
}
</style>